#include "dxcommon.h"

HWND CreateDummyWindow(HINSTANCE hInstance)
{
  static ATOM cls = NULL;
  if (cls == NULL)
  {
    WNDCLASSEX wcex;
    memset(&wcex, 0, sizeof wcex);
    wcex.cbSize = sizeof wcex;
    wcex.lpfnWndProc = DefWindowProc;
    wcex.hInstance = hInstance;
    wcex.lpszClassName = L"KappaUIDummyWndClass";
    cls = RegisterClassEx(&wcex);
  }
  return CreateWindow(L"KappaUIDummyWndClass", NULL,
    WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0,
    NULL, NULL, hInstance, NULL);
}

